Found some minor errors and fixed them
